package com.zyg.cod.test;

import com.zyg.cod.annotation.FieldXmlAnnotation;
import com.zyg.cod.annotation.TableXmlAnnotation;

import java.util.Date;

/**
 * @Dsc: 学生信息：主表
 * @Author: zyg
 * @Date: 2021/1/26
 */
@TableXmlAnnotation(TableName = "student",RelationType=1, ElementFromName = "Student")
public class Student {

	@FieldXmlAnnotation(FieldName = "name", ElementName = "Uid",isNeed = false)
	private int uid;

	@FieldXmlAnnotation(FieldName = "name", ElementName = "UserName",isNeed = true)
	private String userName;
	@FieldXmlAnnotation(FieldName = "age", ElementName = "Age",isNeed = true)
	private int age;
	@FieldXmlAnnotation(FieldName = "bir", ElementName = "Bir",isNeed = true)
	private Date bir;

	public Student() {
	}

	public Student(int uid, String userName, int age, Date bir) {
		this.uid = uid;
		this.userName = userName;
		this.age = age;
		this.bir = bir;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getBir() {
		return bir;
	}

	public void setBir(Date bir) {
		this.bir = bir;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}
}
